﻿/*
 * @Author: yuluo
 * @Date: 2025-09-17
 * @LastEditors: yuluo
 * @LastEditTime: 2025-09-22
 * @FilePath: \Projecte:\gitee\GD32F427\gd32-f427-BootLoader\App\inc\crcCheck.h
 * @Description: 
 * 如有特殊注意事项请填写
 * Copyright (c) by ${yuluo}, All Rights Reserved. 
 */
#ifndef CRCCHECK_H
#define CRCCHECK_H

uint8_t calculate_crc8(const uint8_t *data, uint32_t len);
uint32_t calculate_crc32(const uint8_t *data, uint32_t len, uint32_t poly, uint32_t init, uint32_t xorOut, bool refIn, bool refOut, uint8_t mode);
uint32_t reflect(uint32_t value, int bits);

#endif // CRCCHECK_H

